/* Layout */
const Layout = resolve => require(['@/views/layout/Layout'], resolve);

const MemberRouterMap = {
  id: 146,
  path: '/member',
  component: Layout,
  name: '会员管理',
  redirect: '/member/list',
  meta: {title: '会员管理', icon: 'telephoneBook', power: 'member'},
  alwaysShow: true,
  showMode: 'DEFAULT',
  children: [
    {
      id: 147,
      path: 'list',
      name: '会员列表',
      component: resolve => require(['@/views/plugins/member/list'], resolve),
      meta: {title: '会员列表', icon: 'orderlist', power: 'member.list'}
    }, {
      id: 154,
      path: 'details',
      name: '会员详情',
      component: resolve => require(['@/views/plugins/member/details'], resolve),
      meta: {title: '会员详情', power: 'member.details'},
      hidden: true
    }, {
      id: 149,
      path: 'create',
      name: '添加会员',
      component: resolve => require(['@/views/plugins/member/create'], resolve),
      meta: {title: '添加会员', power: 'activity.member'},
      hidden: true
    }, {
      id: 150,
      path: 'modify',
      name: '编辑会员',
      component: resolve => require(['@/views/plugins/member/create'], resolve),
      meta: {title: '编辑会员', power: 'activity.member'},
      hidden: true
    }, {
      id: 148,
      path: 'type',
      name: '会员类型',
      component: resolve => require(['@/views/plugins/member/type'], resolve),
      meta: {title: '会员类型', icon: 'customer', power: 'member.type'}
    }
  ]
}

export default MemberRouterMap;
